{extend name="index/index" /}
{block name="main"}

                <!-- Start of Page Container -->
                <div class="page-container" style="margin-top: 40px;">
                        <div class="container">
                                <div class="row">

                                        <!-- start of page content -->
                                        <div class="span8 page-content">

                                                <article class="type-page hentry clearfix">
                                                        <h1 class="post-title">
                                                                <a href="#">联系我们</a>
                                                        </h1>
                                                        <hr>
                                                        <p>请填写一下信息,然后提交给我们,我们的工作人员会在1~3日内与您联系</p>
                                                </article>


                                                <form id="contact-form" class="row" action="{:url('index/contact/save')}" method="post">

                                                        <div class="span2">
                                                                <label for="name">你的名字 <span>*</span> </label>
                                                        </div>
                                                        <div class="span6">
                                                                <input type="text" name="name" id="name" class="required input-xlarge" value="" title="* 请输入你的名字">
                                                        </div>

                                                        <div class="span2">
                                                                <label for="email">你的邮箱 <span>*</span></label>
                                                        </div>
                                                        <div class="span6">
                                                                <input type="text" name="email" id="email" class="email required input-xlarge" value="" title="* 请输入你的邮箱">
                                                        </div>

                                                        <div class="span2">
                                                                <label for="reason">标题 </label>
                                                        </div>
                                                        <div class="span6">
                                                                <input type="text" name="title" id="reason" class="required input-xlarge" value="" title="* 请输入标题">
                                                        </div>

                                                        <div class="span2">
                                                                <label for="message">内容 <span>*</span> </label>
                                                        </div>
                                                        <div class="span6">
                                                                <textarea name="content" id="message" class="required span6" rows="6" title="* 请输入内容"></textarea>
                                                        </div>

                                                        <div class="span6 offset2 bm30">
                                                                <input type="submit" value="点击提交" class="btn btn-inverse">
                                                                <img src="{$IMG_PATH}loading.gif" id="contact-loader" alt="Loading...">
                                                        </div>

                                                        <div class="span6 offset2 error-container"></div>
                                                        <div class="span8 offset2" id="message-sent"></div>

                                                </form>
                                        </div>
                                        <!-- end of page content -->


                                        <!-- start of sidebar -->
                                        <aside class="span4 page-sidebar" style="margin: 0 -8px 0 36px;">

                                                <section class="widget">
                                                        <div class="support-widget">
                                                                <h3 class="title">支持</h3>
                                                                <p class="intro">需要更多的支持？ 如果您没有找到答案，请点击右上角联系我们与我们联系以获得进一步的帮助。</p>
                                                        </div>
                                                </section>


                                                <section class="widget">
                                                        <h3 class="title">热门排行</h3>
                                                        <ul class="articles">
                                                                {volist name="top" id="a"}
                                                                <li class="article-entry standard">
                                                                        <h4><a href="{:url('index/question/read',['id'=>$a['id']])}">{$a['title']}</a></h4>
                                                                        <span class="article-meta"><a href="{:url('index/question/read',['id'=>$a['id']])}" title="View all posts in Server &amp; Database">{$a['time']}</a></span>
                                                                        <span class="like-count">{$a['likes']}</span>
                                                                </li>
                                                                {/volist}
                                                        </ul>
                                                </section>


                                        </aside>
                                        <!-- end of sidebar -->
                                </div>
                        </div>
                </div>
                <!-- End of Page Container -->

                {/block}

